using System;
using System.Collections.Generic;

namespace Kotonoha.Server.Dictionaries {
    public class CharEntry {
        public long Id { get; set; }

        IList<String> onyomi = new List<string>();
        IList<String> kunyomi = new List<string>();
        IList<String> nanori = new List<string>();
        IList<String> meanings = new List<string>();
        public string Writing { get; set; }
        
        public int Strokes { get; set; }

        public int Frequency { get; set; }
        

        public void addNanori(string val) {
            nanori.Add(val);
        }

        public void addOnyomi(string val) {
            onyomi.Add(val);
        }

        public void addKunyomi(string val) {
            kunyomi.Add(val);
        }

        public void addMeaning(string val) {
            meanings.Add(val);
        }

        public IList<string> Onyomi {
            get { return onyomi; }
            set { onyomi = value; }
        }

        public IList<string> Kunyomi {
            get { return kunyomi; }
            set { kunyomi = value; }
        }

        public IList<string> Nanori {
            get { return nanori; }
            set { nanori = value; }
        }

        public IList<string> Meanings {
            get { return meanings; }
            set { meanings = value; }
        }
    }
}